package com.qding.park.manager.pojo.enums;

public enum CarOpSpecialEnum {
	DEFAULT("默认", 0),
	FREE("免费车",1),
	CONS("消费车",2);
	
	public static String getDescByCode(int type){
		String temp="";
		if(type==DEFAULT.getType()){
			temp=DEFAULT.getDesc();
		}else if(type==FREE.getType()){
			temp=FREE.getDesc();
		}else if(type==CONS.getType()){
			temp=CONS.getDesc();
		}else{
			temp="";
		}
		
		return temp;
	}
	
	/** 描述 */
	private String desc;
	/** 枚举值 */
	private int type;

	private CarOpSpecialEnum(String desc, int status) {
		this.desc = desc;
		this.type = status;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}
